<?php
/**
 * Created by PhpStorm.
 * User: lancer
 * Date: 2016/11/1
 * Time: 8:31
 */

$e_id = $_GET['e_id'];
$link=mysqli_connect('localhost','root','','itacst');
if(!$link){
    die('Connect Error (' . mysqli_connect_errno() . ') '
        . mysqli_connect_error());

}
mysqli_query($link,'set names utf8');
$sql =  "DELETE FROM emp_info WHERE e_id=[$e_id]";

$result = mysqli_query($link,$sql);
header('Location: showlist.php');